<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<!--%@ taglib uri="http://www.springframework.org/security/tags" prefix="security" %-->
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://www.appfuse.org/tags/struts" prefix="appfuse" %>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="datePattern"><fmt:message key="date.format"/></c:set>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册用户</title>
<link rel="stylesheet" type="text/css" media="all" href="/styles/simplicity/theme.css" />
<link rel="stylesheet" type="text/css" media="print" href="/styles/simplicity/print.css" />
<link href="/styles/main.css" rel="stylesheet">
<script type="text/javascript" src="/scripts/prototype.js"></script>
<script type="text/javascript" src="/scripts/scriptaculous.js"></script>
<script type="text/javascript" src="/scripts/global.js"></script>
<script type="text/javascript" src="/struts/css_xhtml/validation.js"></script>
<script>
	function openWindow(){
		var orgid=document.getElementById("sorgid").value;
		var urlstr="getPosition.html?orgid="+orgid;
		var returnvalue=window.showModalDialog(urlstr);
		var ret=returnvalue.split("|");
		document.getElementById("tbluser.orgid").value=ret[1];
  }
</script>

</head>
<body bgcolor="#ffffff">
<div id="content" class="clearfix">
    <div id="main" >        
		<s:form id="singForm" action="saveUser" method="post">
			<table  width="90%"  align="center" border="1" bordercolor="#C0DCFA" cellpadding="1"  cellspacing="0" >
			<tr height="40px"><td colspan="2"><div align="center"><strong>新用户注册</strong></div></td></tr>
			<tr height="30px">
				<td width="30%" align="right">用户名：&nbsp;&nbsp;</td>
				<td align="left"><input type="text" size="40" name="tbluser.usercode" value="" id="tbluser.usercode" class="editbox2"/><span class="req">*</span></td>
			</tr>
			<tr height="30px">
				<td width="30%" align="right">密码：&nbsp;&nbsp;</td>
				<td align="left"><input type="password" size="42" name="tbluser.pwd" value="" id="tbluser.pwd" class="editbox2"/><span class="req">*</span></td>
			</tr>	
			<tr height="30px">
				<td width="30%" align="right">确认密码：&nbsp;&nbsp;</td>
				<td align="left"><input type="password" size="42" name="confirmPassword" value="" id="signup_user_confirmPassword" class="editbox2"/><span class="req">*</span></td>
			</tr>	
			<tr height="20px">
				<td width="30%" align="right">真实姓名：&nbsp;&nbsp;</td>
				<td align="left"><input type="text" size="40" name="tbluser.username" value="" id="tbluser.username" class="editbox2"/><span class="req">*</span></td>
			</tr>	
			<tr height="20px">
				<td width="30%" align="right">E-mail：&nbsp;&nbsp;</td>
				<td align="left"><input type="text" size="40" name="tbluser.mail" value="" id="tbluser.mail" class="editbox2"/></td>
			</tr>	
			<tr height="20px">
				<td width="30%" align="right">地址：&nbsp;&nbsp;</td>
				<td align="left"><input type="text" size="40" name="tbluser.address" value="" id="tbluser.address" class="editbox2"/></td>
			</tr>
			<tr height="20px">
				<td width="30%" align="right">组织机构：&nbsp;&nbsp;</td>
				<td align="left"><s:select  cssStyle="size:30px;" list="orgsList" id="sorgid" name="tblorg.orgid" listKey="orgid" listValue="orgname" ></s:select><span class="req">*</span></td>
			</tr>	
			<tr height="20px">
				<td width="30%" align="right">选择岗位：&nbsp;&nbsp;</td>
				<td align="left"><input type="text" size="40" name="tblposition.pid" id="tblpid"/><input type="button" value=" + " onclick="javascript:openWindow();"/><span class="req">*</span></td>
			</tr>
			<tr height="20px">
				<td colspan="2"  align="center">
        				<input type="submit" id="signup_button_register" name="button.register" value="注册" class="button"/>
        				&nbsp;&nbsp;
        				<input type="reset" id="signup_cancel" name="cancel" value="取消" class="button" />				
				</td>
			</tr>	
			</table>
			<%--ul>
			    <li class="info">
			        请输入用户信息
			    </li>
    			<li id="wwgrp_signup_user_username" class="wwgrp">    
    				<div id="wwlbl_signup_user_usercode" class="wwlbl">
						<label for="signup_user_usercode" class="desc">用户名<span class="req">*</span></label>    
						    
					</div> 				
			    </li>
			    <li id="wwgrp_signup_user_password" class="wwgrp">			       
			         <div id="wwlbl_signup_user_userpassword" class="wwlbl">
			                <label for="signup_user_password" class="desc">密码 <span class="req">*</span></label>
			                
			         </div>
			   </li>
			   <li id="wwgrp_signup_user_confirmPassword" class="wwgrp">
			         <div id="wwlbl_signup_user_confirmPassword">
			                <label for="signup_user_confirmPassword" class="desc">确认密码 <span class="req">*</span></label>
			                <input type="password" name="confirmPassword" value="" id="signup_user_confirmPassword" class="text medium"/>
			         </div>			       
			    </li>
			    <li id="wwgrp_signup_user_username" class="wwgrp">    
			    	<div id="wwlbl_signup_user_username" class="wwlbl">
						<label for="signup_user_username" class="desc">真实姓名</label>  
						<input type="text" name="tbluser.username" value="" id="tbluser.username" class="text large"/>      
					</div> 					
				</li>
				
				<li id="wwgrp_signup_user_usertel" class="wwgrp">    
			    	<div id="wwlbl_signup_user_usertel" class="wwlbl">
						<label for="signup_user_usertel" class="desc">联系电话</label>
						<input type="text" name="tbluser.tel" value="" id="tbluser.tel" class="text large"/>        
					</div> 					
				</li>
			    
			    <li id="wwgrp_signup_user_usermail" class="wwgrp">    
			    	<div id="wwlbl_signup_user_usermail" class="wwlbl">
						<label for="signup_user_usermail" class="desc">E-mail</label> 
						<input type="text" name="tbluser.mail" value="" id="tbluser.mail" class="text large"/>       
					</div> 					
				</li>
				
				<li id="wwgrp_signup_user_useraddress" class="wwgrp">    
			    	<div id="wwlbl_signup_user_useraddress" class="wwlbl">
						<label for="signup_user_useraddress" class="desc">地址</label> 
						<input type="text" name="tbluser.address" value="" id="tbluser.address" class="text large"/>       
					</div> 					
				</li>
				
				<li id="wwgrp_signup_user_userorgid" class="wwgrp">    
    				<div id="wwlbl_signup_user_userorgid" class="wwlbl">    				
						<label for="signup_user_userorgid" class="desc">组织机构<span class="req">*</span></label> 
						<s:select list="orgsList" id="sorgid" name="tblorg.orgid" listKey="orgid" listValue="orgname" cssClass="text large"></s:select>       
					</div> 	
			    </li>
			    <li id="wwgrp_signup_user_userpositionid" class="wwgrp">    
			    	<div id="wwlbl_signup_user_userpositionid" class="wwlbl">
						<label for="signup_user_userpositionid" class="desc">选择岗位</label>  
						<input type="text" name="tblposition.pid" id="tblpid"/><input type="button" value=" + " onclick="javascript:openWindow();"/>      
					</div> 					
				</li>
			    
    			<li id="ppp" class="wwgrp">
        			<div   id="wwctrl_signup_button_register" class="wwlbl">
        				<input type="submit" id="signup_button_register" name="button.register" value="注册" class="button"/>
        				&nbsp;&nbsp;
        				<input type="reset" id="signup_cancel" name="cancel" value="取消" class="button" />
					</div>         			
    			</li>
			</ul--%>
		</s:form>
		</div>
	</div>
	</body>
</html>
